﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
    public class Custodian
    {
        #region Properties
        // CUSTODIAN_ID
        public virtual int CustodianId { set; get; }
        // CUSTODIAN_NAME_EN
        public virtual String CustodianNameEn { set; get; }
        // CUSTODIAN_NAME_TH
        public virtual String CustodianNameTh { set; get; }
        // CUSTODIAN_ADDRESS
        public virtual String CustodianAddress { set; get; }
        // CUSTODIAN_CONTACT
        public virtual String CustodianContact { set; get; }
        // CUSTODIAN_EMAIL
        public virtual String CustodianEmail { set; get; }
        // CUSTODIAN_TEL
        public virtual String CustodianTel { set; get; }
        // CUSTODIAN_FAX
        public virtual String CustodianFax { set; get; }
        // CREATE_USER_ID
        public virtual String CreateUserId { set; get; }
        // CREATE_TS
        public virtual DateTime CreateTs { set; get; }

        #endregion



        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;
            if (obj.GetType() != typeof(Custodian) && !(obj is Custodian))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}", CustodianId);
        }
    }
}
